<?php

$db->query("UPDATE site_pages SET active=1 WHERE site_id=? AND id=?", array($site['id'], $_REQUEST['id']));
header('Content-type: application/json');
echo json_encode(array('ok' => true));